import Layout from '@/layout'
import RouteButtonsBuilder from '@/framework/infra/router/RouterButtonsBuilder'

export default [
  {
    path: '/pms',
    component: Layout,
    name: 'pms',
    meta: { title: '商品', icon: 'el-icon-s-help' },
    children: [
      // {
      //   path: 'payment-order',
      //   name: 'pms-payment-order',
      //   component: () => import('@/feature/pms/app/payment-order/index'),
      //   meta: { title: '支付订单', icon: 'table' },
      //   buttons: RouteButtonsBuilder.builder('pms-payment-order').curdoo()
      //     .build()
      // },
      // {
      //   path: 'refund-order',
      //   name: 'pms-refund-order',
      //   component: () => import('@/feature/pms/app/refund-order/index'),
      //   meta: { title: '退款订单', icon: 'table' },
      //   buttons: RouteButtonsBuilder.builder('pms-refund-order').curdoo()
      //     .build()
      // },
      {
        path: 'product-category',
        name: 'product-category',
        component: () => import('@/feature/pms/app/product/category'),
        meta: { title: '商品分类', icon: 'table' },
        buttons: RouteButtonsBuilder.builder('product-category').r({ exported: false })
          .build()
      },
      {
        path: 'product',
        name: 'product',
        component: () => import('@/feature/pms/app/product/index'),
        meta: { title: '商品列表', icon: 'table' },
        buttons: RouteButtonsBuilder.builder('product').r({ exported: false })
          .build()
      }
      // #appendSpot# 生成工具用，不要删了
    ]
  }
]
